package freemarker;

import java.io.IOException;
import java.io.Writer;
import java.util.Map;

import freemarker.core.Environment;
import freemarker.template.TemplateDirectiveBody;
import freemarker.template.TemplateException;
import freemarker.template.TemplateModel;

public class SubNavTag extends BaseTag {
    public void execute(Environment env, Map params, TemplateModel[] loopVars, TemplateDirectiveBody body)
                                                                                                          throws TemplateException,
                                                                                                          IOException {
        // 真正开始处理输出内容
        Writer out = env.getOut();
        StringBuilder sb = new StringBuilder();
        sb.append("<div class=\"subNavCol column\" id=\"subNav\">");
        sb.append("<div class=\"subNav\">");
        sb.append("<span class=\"fl\">您的位置：</span>");
        sb.append("<ol>");
        sb.append("</ol>");
        sb.append("</div>");
        sb.append("</div>");
        out.write(sb.toString());
    }
}
